package dockyin.action.pattern.mediator;

public class Mediator extends AbstractMediator {
    public Mediator(AbstractWorker workerA, AbstractWorker workerB) {
        super(workerA, workerB);
    }

    @Override
    public void affectA() {
        workerA.setNumber(workerB.getNumber() / 100);
    }

    @Override
    public void affectB() {
        workerB.setNumber(workerA.getNumber() * 100);
    }
}
